﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models
{
    public class Get_Play_time
    {
        CinemaDBEntities2 cdb = new CinemaDBEntities2();
        public List<play_table> GetPlaytime(int cid, int fid)
        {
            List<play_table> play_Tables = cdb.play_table.Where(x => x.filmid == fid||x.cinemaid==cid).ToList();

            return play_Tables;
        }
    }
}